import { getCurMerchantData } from '@/api/merchant';
import { merchantType, TableData } from '@/types/table';

export default async function curMerchant(params?: merchantType): Promise<TableData> {
    const { content, totalElements } = await getCurMerchantData(params);

    return {
        list: content,
        total: totalElements,
    };
}
